﻿
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
namespace BPM.Web.Shared.Data;

/// <summary>
/// 分页用，参数自己添加
/// </summary>
public class RolePageInput : PageInputBase
{
    /// <summary>
    /// 角色类型-集团角色_0、加盟商角色_1、门店角色_2
    /// </summary>
    [Required(ErrorMessage = "请选择角色类型")]
    public RoleTypeEnum RoleType { get; set; } = RoleTypeEnum.GROUP;

    /// <summary>
    /// 名称
    /// </summary>
    public virtual string? Name { get; set; }

    /// <summary>
    /// 编码
    /// </summary>
    public virtual string? Code { get; set; }
}
